<?php

namespace Keio\StudyBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Packageuser
 */
class Packageuser
{
    /**
     * @var integer
     */
    private $id;

    /**
     * @var \Keio\StudyBundle\Entity\User
     */
    private $user;

    /**
     * @var \Keio\StudyBundle\Entity\Package
     */
    private $package;


    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set user
     *
     * @param \Keio\StudyBundle\Entity\User $user
     * @return Packageuser
     */
    public function setUser(\Keio\StudyBundle\Entity\User $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \Keio\StudyBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }

    /**
     * Set package
     *
     * @param \Keio\StudyBundle\Entity\Package $package
     * @return Packageuser
     */
    public function setPackage(\Keio\StudyBundle\Entity\Package $package = null)
    {
        $this->package = $package;
    
        return $this;
    }

    /**
     * Get package
     *
     * @return \Keio\StudyBundle\Entity\Package 
     */
    public function getPackage()
    {
        return $this->package;
    }
}